page_gxlxsq = (state={},action)->
  switch action.type
    when 'GXLXSQ/GET_GXINFO_START'
      state
    when 'GXLXSQ/GET_GXINFO_COMPLETED'
      Object.assign {},state,
        YLXTS:action.payload.YLXTS
        SYTS:action.payload.SYTS
    when 'GXLXSQ/POST_START'
      Object.assign {},state,
        posting:true
        success:false
        error:''
    when 'GXLXSQ/POST_COMPLETED'
      Object.assign {},state,
        posting:false
        success:true
        error:''
    when 'GXLXSQ/POST_FAIL'
      debugger
      err = action.payload
      Object.assign {},state,
        posting:false
        success:false
        error:err.message
    when 'GXLXSQ/RESET_STATE'
      Object.assign {},state,
        posting:false
        success:false
        error:''
    else
      state

module.exports = page_gxlxsq
